package math.vectorSpace.R3.visualization;

import math.vectorSpace.R2.Point2D;
import math.vectorSpace.R3.Point3D;
import math.vectorSpace.R3.Vector3D;

public class RenderOrthographic extends Render3D {
    
    public RenderOrthographic(double angleXY, double angleZ, 
            int distance, int screenWidth, int screenHeight) {
        super(angleXY, angleZ, distance, screenWidth, screenHeight);
    }
    
    @Override
    public Point2D project(Point3D point) {
        Vector3D relativeVector = new Vector3D(planeOrigin, point);
        
        return new Point2D(relativeVector.projectMag(xBasis),
                relativeVector.projectMag(yBasis));
    }
    
}
